package design_pattern.singleton;

import java.io.File;

public class RegistrySingletonChild extends RegistrySingleton {

  public RegistrySingletonChild() {

  }

  public static RegistrySingletonChild getInstance() {
    return (RegistrySingletonChild) RegistrySingleton
            .getInstance("singleton.RegistrySingletonChild");
  }

  @Override
  public void about() {
    System.out.println(File.separator);
    System.out.println("这个一子类的商业方法示例！");
  }

  /**
   * @param args
   */
  public static void main(String[] args) {
    RegistrySingletonChild reg = RegistrySingletonChild.getInstance();
    reg.about();
  }

}
